﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WhallaToolkit.IsolatedStorage
{
    public interface IIsolatedStorageService
    {
       
        Task SaveFileAsync(string filename, object payload);

        
        Task<T> LoadFileAsync<T>(string filename);
        Stream LoadRawFileAsync(string filename);

        void SaveFile(string filename, object payload);

        T LoadFile<T>(string filename);

        void RemoveFile(string filename);
        void SaveSettings(string key, object payload);
        void RemoveSettings(string key);

        T LoadSettings<T>(string key);
        
    }


}
